package com.c.ctgproject.entity.storage

class StorageListEntity {
    /**
     * status : 0
     * msg : null
     * data : {"total":9,"list":[{"id":1,"name":"销售1区","type":null},{"id":2,"name":"销售2区","type":null},{"id":3,"name":"小车待验区","type":null},{"id":4,"name":"小车待拆区","type":null},{"id":5,"name":"小车存储区","type":null},{"id":6,"name":"大车预处理区","type":null},{"id":7,"name":"大车拆解区","type":null},{"id":8,"name":"大车存储区","type":null},{"id":9,"name":"小车拆解区","type":2}],"pageNum":1,"pageSize":20,"size":9,"startRow":1,"endRow":9,"pages":1,"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1],"navigateFirstPage":1,"navigateLastPage":1}
     * success : true
     */
    var status = 0
    var msg: Any? = null
    var data: DataBean? = null
    var isSuccess = false

    class DataBean {
        /**
         * total : 9
         * list : [{"id":1,"name":"销售1区","type":null},{"id":2,"name":"销售2区","type":null},{"id":3,"name":"小车待验区","type":null},{"id":4,"name":"小车待拆区","type":null},{"id":5,"name":"小车存储区","type":null},{"id":6,"name":"大车预处理区","type":null},{"id":7,"name":"大车拆解区","type":null},{"id":8,"name":"大车存储区","type":null},{"id":9,"name":"小车拆解区","type":2}]
         * pageNum : 1
         * pageSize : 20
         * size : 9
         * startRow : 1
         * endRow : 9
         * pages : 1
         * prePage : 0
         * nextPage : 0
         * isFirstPage : true
         * isLastPage : true
         * hasPreviousPage : false
         * hasNextPage : false
         * navigatePages : 8
         * navigatepageNums : [1]
         * navigateFirstPage : 1
         * navigateLastPage : 1
         */
        var total = 0
        var pageNum = 0
        var pageSize = 0
        var size = 0
        var startRow = 0
        var endRow = 0
        var pages = 0
        var prePage = 0
        var nextPage = 0
        var isIsFirstPage = false
            private set
        var isIsLastPage = false
            private set
        var isHasPreviousPage = false
        var isHasNextPage = false
        var navigatePages = 0
        var navigateFirstPage = 0
        var navigateLastPage = 0
        var list: List<ListBean>? = null
        var navigatepageNums: List<Int>? = null

        fun setIsFirstPage(isFirstPage: Boolean) {
            isIsFirstPage = isFirstPage
        }

        fun setIsLastPage(isLastPage: Boolean) {
            isIsLastPage = isLastPage
        }

        class ListBean {
            /**
             * id : 1
             * name : 销售1区
             * type : null
             */
            var id = 0
            var name: String? = null
            var type: Any? = null

        }
    }
}